import request from '@/utils/request'

// 获取消息列表
export function ownList(params) {
  return request({
    url: '/basic/message/ownList',
    method: 'get',
    params
  })
}

// 标记信息为已读
export function read(params) {
  return request({
    url: '/basic/message/read',
    method: 'post',
    params
  })
}

// 获取未读消息数量
export function unreadCount() {
  return request({
    url: '/basic/message/unreadCount',
    method: 'get',
  })
}
